<?php
/**
 * HTML表单处理类
 *
 * @author fakis738@gmail.com
 * @link http://www.woophp.com/manual/class/form.lib.php
 * @version $id form.lib.php v0.1 2011-12-03$
 */
class Form
{
    public function __construct($config)
    {
    }
    
    public function create()
    {
    	$attrs = ' enctype="multipart/form-data"';
    	return '<form ';
    }
    
    public function input($data)
    {
    	$defaults = array(
			'type' => 'text',
			'name' => !is_array($attrs) ? $attrs : '',
			'value' => $value,
		);
		return '<input '. $this->parse_tags_attrs($attrs, $defaults). $extra. ' />';
    }
    
    public function radio($data)
    {
    	
    }
    
    public function parse_tags_attrs($attrs, $defaults='')
    {
    	
    }
}
